package com.whfc.fmam.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description:
 * @author: xugcheng
 * @version: 1.0
 * @date: 2019/10/18 11:54
 */
@Setter
@Getter
@ToString
public class SyncFmamWeighNoteDTO implements Serializable {

    /**
     * 唯一标识
     */
    @NotEmpty
    private String guid;

    @NotEmpty
    private String code;

    @NotNull
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;

    @NotEmpty
    private String licensePlate;

    @NotNull
    private Integer weightNoteType;

    private Integer recvSendType;

    private Integer receiveSupplierId;

    private String receiveSupplierName;

    private Integer sendSupplierId;

    private String sendSupplierName;

    private Integer warehouseId;

    private String warehouseName;

    private String deliveryCode;

    private String deliveryBatch;

    private Double grossWeight;

    private Date grossWeightTime;

    private Double tareWeight;

    private Date tareWeightTime;

    private Double netWeight;

    private Integer confirmWeightType;

    private Double confirmWeight;

    private String partId;

    private String partName;

    private String grossUserId;

    private String grossUserName;

    private String tareUserId;

    private String tareUserName;

    private Double actualDiff;

    private Integer diffResult;

    private Integer printCnt;

    private String source;

    private Integer state;

    /**
     * 备注
     */
    private String remark;

    private Date updateTime;

    private Date createTime;

    /***
     * 磅单材料
     */
    List<SyncFmamWeighNoteMatDTO> matList;

    /**
     * 磅单图片
     */
    List<SyncFmamWeighNoteImgDTO> imgList;
}
